<?php
include("db_connect.php");

$data = array();
$data = explode(",", $_GET['id']);

for($i = 0; $i<sizeof($data); $i++){
	$query = "Delete FROM tbltradein where id='".$data[$i]."'"; 
	$result = mysql_query($query);
}
if (mysql_affected_rows())
	echo "1";

else
	echo "failed connection!";


?>